home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
prog_bas
/
easynet.zip
/
DEMO.ZIP
/
WORKFLOW.FRM
< prev
next >
Wrap
Text File
|
1996-01-01
|
13KB
|
586 lines
VERSION 4.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Caption = "Example 1: WorkFlow"
ClientHeight = 4110
ClientLeft = 1170
ClientTop = 1545
ClientWidth = 5685
FillColor = &H0080FFFF&
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 4515
Left = 1110
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4110
ScaleWidth = 5685
Tag = "1"
Top = 1200
Width = 5805
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 585
Index = 0
Left = 3570
Picture = "WORKFLOW.frx":0000
ScaleHeight = 555
ScaleWidth = 555
TabIndex = 3
Top = 3000
Visible = 0 'False
Width = 585
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 585
Index = 2
Left = 4800
Picture = "WORKFLOW.frx":030A
ScaleHeight = 555
ScaleWidth = 585
TabIndex = 2
Top = 3000
Visible = 0 'False
Width = 615
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 585
Index = 1
Left = 4170
Picture = "WORKFLOW.frx":0614
ScaleHeight = 555
ScaleWidth = 585
TabIndex = 1
Top = 3000
Visible = 0 'False
Width = 615
End
Begin VBX.EasyNet Net1
Alignment = 7 'Center - MIDDLE
AutoScroll = -1 'True
BackColor = &H00E0FFFF&
CanMultiLink = -1 'True
DrawColor = &H00FF0000&
DrawWidth = 1
FillColor = &H0080FFFF&
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00C00000&
Height = 2475
Hiding = 0 'False
ImageFile = ""
Left = 240
License = "WORKFLOW.frx":091E
MultiSel = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 210
Version = 183
Width = 5295
xGrid = 15
yGrid = 15
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Dim n%, interflag%
Private Sub banner1()
Dim Node() As Long
interflag = False
ReDim Node(1 To 19)
Net1.EditAction = 0
Net1.DrawColor = 32768
Net1.FillColor = RGB(255, 255, 192)
Net1.X1 = 1050
Net1.X2 = 2355
Net1.Y1 = 60
Net1.Y2 = 1020
Net1.Text = "Order Entry"
Net1.Picture = Picture1(2).Picture
Node(1) = Net1.Item
Net1.EditAction = 0
Net1.DrawColor = 32768
Net1.FillColor = 16777215
Net1.X1 = 1470
Net1.X2 = 1920
Net1.Y1 = 1570
Net1.Y2 = 2020
Net1.Text = "and"
Node(2) = Net1.Item
Net1.EditAction = 0
Net1.DrawColor = 32768
Net1.FillColor = 16777215
Net1.X1 = 1425
Net1.X2 = 1845
Net1.Y1 = 4815
Net1.Y2 = 5295
Node(3) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 245
Net1.X2 = 1360
Net1.Y1 = 3285
Net1.Y2 = 3810
Net1.Text = "Inventory Check"
Node(4) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 2070
Net1.X2 = 3345
Net1.Y1 = 2700
Net1.Y2 = 3165
Net1.Text = "Compile Reference"
Node(5) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 2070
Net1.X2 = 3345
Net1.Y1 = 3960
Net1.Y2 = 4395
Net1.Text = "Evaluate Reference"
Node(6) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 3
Net1.DrawColor = 32768
Net1.FillColor = 12632256
Net1.X1 = 2460
Net1.X2 = 2940
Net1.Y1 = 4800
Net1.Y2 = 5280
Net1.Text = "or"
Node(7) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 3
Net1.DrawColor = 32768
Net1.FillColor = 12632256
Net1.X1 = 1380
Net1.X2 = 1860
Net1.Y1 = 6390
Net1.Y2 = 6870
Net1.Text = "or"
Node(8) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 1050
Net1.X2 = 2200
Net1.Y1 = 5620
Net1.Y2 = 6150
Net1.Text = "Order Evaluation"
Node(9) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 30
Net1.X2 = 1395
Net1.Y1 = 7275
Net1.Y2 = 8190
Net1.Text = "Letter of regret"
Net1.Picture = Picture1(0).Picture
Node(10) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 2010
Net1.X2 = 3195
Net1.Y1 = 7425
Net1.Y2 = 7815
Net1.Text = "Billing"
Node(11) = Net1.Item
Net1.EditAction = 0
Net1.Shape = 2
Net1.DrawColor = 32768
Net1.FillColor = 8454143
Net1.X1 = 2025
Net1.X2 = 3195
Net1.Y1 = 8310
Net1.Y2 = 8685
Net1.Text = "Shipping"
Node(12) = Net1.Item
Net1.EditAction = 0
Net1.DrawColor = 32768
Net1.FillColor = RGB(255, 255, 192)
Net1.X1 = 1080
Net1.X2 = 2190
Net1.Y1 = 9505
Net1.Y2 = 10420
Net1.Text = "Archive"
Net1.Picture = Picture1(1).Picture
Node(13) = Net1.Item
Net1.Item = 0
Net1.Shape = 2
Net1.DrawColor = RGB(0, 0, 255)
Net1.EditAction = 0
Net1.Transparent = -1
Net1.Type = 2
Net1.FillColor = 15269887
Net1.X1 = 45
Net1.X2 = 1260
Net1.Y1 = 1135
Net1.Y2 = 1775
Net1.Text = "Jane" & cr & lf & "INVENTORY MANAGER"
Node(15) = Net1.Item
Net1.EditAction = 0
Net1.Transparent = -1
Net1.Type = 2
Net1.FillColor = 15269887
Net1.X1 = 2915
Net1.X2 = 3930
Net1.Y1 = 1110
Net1.Y2 = 1635
Net1.Text = "Paul" & cr & lf & "SECRETARY"
Node(16) = Net1.Item
Net1.EditAction = 0
Net1.Transparent = -1
Net1.Type = 2
Net1.FillColor = 15269887
Net1.X1 = 3000
Net1.X2 = 4000
Net1.Y1 = 5640
Net1.Y2 = 6120
Net1.Text = "Lydia" & cr & lf & "SECRETARY"
Node(17) = Net1.Item
Net1.EditAction = 0
Net1.DrawStyle = 2
Net1.Transparent = -1
Net1.Type = 2
Net1.FillColor = 15269887
Net1.X1 = 3410
Net1.X2 = 4010
Net1.Y1 = 7770
Net1.Y2 = 8310
Net1.Text = "Bill"
Node(18) = Net1.Item
Net1.EditAction = 0
Net1.Transparent = -1
Net1.Type = 2
Net1.FillColor = 15269887
Net1.X1 = 105
Net1.X2 = 945
Net1.Y1 = 9030
Net1.Y2 = 9630
Net1.Text = "Jack" & cr & lf & "ARCHIVER"
Node(19) = Net1.Item
Net1.Org = Node(1)
Net1.Dst = Node(2)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(2)
Net1.Dst = Node(4)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 1
Net1.PointX(0) = 795
Net1.PointY(0) = 2130
Net1.Org = Node(5)
Net1.Dst = Node(6)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(4)
Net1.Dst = Node(3)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 1
Net1.PointX(0) = 795
Net1.PointY(0) = 5040
Net1.Org = Node(6)
Net1.Dst = Node(7)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(7)
Net1.Dst = Node(3)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Text = "Yes"
Net1.Org = Node(3)
Net1.Dst = Node(9)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(9)
Net1.Dst = Node(8)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(8)
Net1.Dst = Node(10)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 1
Net1.PointX(0) = 705
Net1.PointY(0) = 6795
Net1.Text = "Reject"
Net1.Org = Node(8)
Net1.Dst = Node(11)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 1
Net1.PointX(0) = 2595
Net1.PointY(0) = 6795
Net1.Text = "Accept"
Net1.Org = Node(11)
Net1.Dst = Node(12)
Net1.EditAction = 1
Net1.DrawColor = RGB(0, 0, 255)
Net1.DrawStyle = 0
Net1.Org = Node(12)
Net1.Dst = Node(13)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(10)
Net1.Dst = Node(13)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.Org = Node(2)
Net1.Dst = Node(5)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 1
Net1.PointX(0) = 2700
Net1.PointY(0) = 2115
Net1.Org = Node(7)
Net1.Dst = Node(5)
Net1.EditAction = 1
Net1.DrawColor = 32768
Net1.DrawStyle = 0
Net1.PointCount = 2
Net1.PointX(0) = 4020
Net1.PointY(0) = 5040
Net1.PointX(1) = 4020
Net1.PointY(1) = 2925
Net1.Text = "No"
' default properties for the end
Net1.Item = 0
Net1.DrawStyle = 0
Net1.DrawWidth = 1
Net1.Shape = 2
Net1.Transparent = True
interflag = True
' Now continue
Net1.Org = Node(15)
Net1.Dst = Node(1)
Net1.EditAction = 1
Net1.Org = Node(16)
Net1.Dst = Node(5)
Net1.EditAction = 1
Net1.Org = Node(16)
Net1.Dst = Node(6)
Net1.EditAction = 1
Net1.Org = Node(15)
Net1.Dst = Node(4)
Net1.EditAction = 1
Net1.PointCount = 1
Net1.PointX(0) = 450
Net1.PointY(0) = 2460
Net1.Org = Node(17)
Net1.Dst = Node(9)
Net1.EditAction = 1
Net1.Org = Node(18)
Net1.Dst = Node(11)
Net1.EditAction = 1
Net1.Org = Node(18)
Net1.Dst = Node(12)
Net1.DrawStyle = 2
Net1.EditAction = 1
Net1.Org = Node(19)
Net1.Dst = Node(10)
Net1.DrawStyle = 2
Net1.EditAction = 1
Net1.Org = Node(19)
Net1.Dst = Node(13)
Net1.EditAction = 1
' Unselect last created link
Net1.Item = 0
End Sub
Private Sub Form_Activate()
ActivateForm
End Sub
Private Sub Form_Deactivate()
DeactivateForm
End Sub
Private Sub Form_Load()
MDI1.ShowExample(0).Enabled = False
SpeedON Net1
banner1
SpeedOFF Net1
End Sub
Private Sub Form_Resize()
If WindowState <> 1 And ScaleHeight <> 0 Then
Net1.Visible = False
Net1.Top = 0
Net1.Left = 0
Net1.Height = ScaleHeight
Net1.Width = ScaleWidth
Net1.Visible = True
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
MDI1.ShowExample(0).Enabled = True
MDI1.Command5.Enabled = False
MDI1.Command5.Caption = "Comments "
End Sub
Private Sub Net1_AddLink()
If interflag = True Then
Net1.Type = 2
Net1.LinkHead = 1
End If
End Sub
Private Sub Net1_AddNode()
If Net1.X2 - Net1.X1 < 200 Then Net1.X2 = Net1.X1 + 200
If Net1.Y2 - Net1.Y1 < 200 Then Net1.Y2 = Net1.Y1 + 200
If interflag = True Then
Net1.Type = 2
End If
End Sub
Private Sub Net1_DblClick()
If Net1.Item <> 0 Then
If Net1.IsLink = False Then
If Net1.Type = 2 Then
Dim s$
Dim pos%
s = Net1.Text
pos = InStr(s, cr)
If pos = 0 Then
Actor = s
Role = ""
Else
Actor = Left$(s, pos - 1)
Role = Mid$(s, pos + 2)
End If
frmTask.Show 1
Net1.Text = Actor & cr & lf & Role
End If
End If
End If
End Sub
Private Sub Net1_KeyDown(KeyCode As Integer, Shift As Integer)
Dim l&
Select Case KeyCode
Case KEY_DELETE
If Net1.Type = 2 Then
Net1.EditAction = 2
End If
Case KEY_LEFT
l = SendMessage(Net1.hWnd, WM_HSCROLL, SB_LINEUP, 0)
Case KEY_RIGHT
l = SendMessage(Net1.hWnd, WM_HSCROLL, SB_LINEDOWN, 0)
Case KEY_DOWN
l = SendMessage(Net1.hWnd, WM_VSCROLL, SB_LINEDOWN, 0)
Case KEY_UP
l = SendMessage(Net1.hWnd, WM_VSCROLL, SB_LINEUP, 0)
Case KEY_NEXT
l = SendMessage(Net1.hWnd, WM_VSCROLL, SB_PAGEDOWN, 0)
Case KEY_PRIOR
l = SendMessage(Net1.hWnd, WM_VSCROLL, SB_PAGEUP, 0)
End Select
End Sub
Private Sub Net1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
CursorShape Net1
End Sub